package org.example;

import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
        var plus = new Token(Token.PLUS, "+");
        var one = new Token(Token.INT, "1");
        var two = new Token(Token.INT, "2");
        var root = new AddNode(new IntNode(one), plus, new IntNode(two));
        System.out.println(root.toStringTree());

        var elements = new ArrayList<ExprNode>();
        elements.add(new IntNode(one));
        elements.add(new IntNode(two));
        var vector = new VectorNode(new Token(Token.ID, "list"), elements);
        System.out.println(vector.toStringTree());
    }
}